package net.siufung.simple.log;

import com.alibaba.fastjson.JSON;
import lombok.extern.slf4j.Slf4j;
import net.siufung.web.aop.dto.AutoLogDto;
import net.siufung.web.aop.service.defaults.DefaultAutoLogServiceImpl;
import org.springframework.context.annotation.Primary;
import org.springframework.stereotype.Component;

/**
 * @author 陈建峰
 * @date 2022/10/8 5:40 下午
 * @since V1.0.0
 */
@Primary
@Slf4j
@Component
public class AutoLogServiceImpl extends DefaultAutoLogServiceImpl {

    @Override
    public void asyncRecord(AutoLogDto autoLogDto) {
        log.info(JSON.toJSONString(autoLogDto));
    }
}
